<HTML><HEAD><TITLE>ord_compare(-Rel, +Set1, +Set2)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(ordset)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>ord_compare(-Rel, +Set1, +Set2)</H1>
Rel is the ordering relationship between Set1 and Set2
<DL>
<DT><EM>Rel</EM></DT>
<DD>A variable or an atom
</DD>
<DT><EM>Set1</EM></DT>
<DD>A set
</DD>
<DT><EM>Set2</EM></DT>
<DD>A set
</DD>
</DL>
<H2>Description</H2>
	Rel is the ordering relationship between Set1 and Set2.
	Rel is one of the atoms =, &gt; or &lt;
	<PRE>
	=    The sets are identical (in the sense of ==/2)
	&gt;    Set1 is a proper superset of Set2
	&lt;    Set1 is a proper subset of Set2
	</PRE>
	Otherwise the predicate fails.
<H3>Modes and Determinism</H3><UL>
<LI>ord_compare(-, +, +) is semidet
</UL>
<H3>Fail Conditions</H3>
Fails if the sets are not comparable
<H2>See Also</H2>
<A HREF="../../kernel/termcomp/AL-2.html">@< / 2</A>, <A HREF="../../lib/ordset/ord_seteq-2.html">ord_seteq / 2</A>, <A HREF="../../lib/ordset/ord_proper_subset-2.html">ord_proper_subset / 2</A>, <A HREF="../../lib/ordset/ord_proper_superset-2.html">ord_proper_superset / 2</A>
</BODY></HTML>
